package com.hhss.qishi.mapper.system;

import com.hhss.qishi.entity.system.Permission;
import com.hhss.qishi.mapper.CapitalMapper;
import com.hhss.qishi.mapper.system.provider.PermissionProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 权限
 * @author Administrator
 *
 */
@Mapper
@Repository
public interface PermissionMapper extends CapitalMapper<Permission> {
	
	@SelectProvider(type = PermissionProvider.class, method = "getEntityByIdSQL")
	List<Permission> getListByRoleId(@Param("id") Long id);
}
